package top.pengdong.pictureShare.tweet.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import top.pengdong.pictureShare.common.model.PageUtils;
import top.pengdong.pictureShare.common.model.Query;
import top.pengdong.pictureShare.tweet.dao.PsLabelDao;
import top.pengdong.pictureShare.tweet.entity.PsLabelEntity;
import top.pengdong.pictureShare.tweet.service.PsLabelService;


@Service("psLabelService")
public class PsLabelServiceImpl extends ServiceImpl<PsLabelDao, PsLabelEntity> implements PsLabelService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<PsLabelEntity> page = this.page(
                new Query<PsLabelEntity>().getPage(params),
                new QueryWrapper<PsLabelEntity>()
        );

        return new PageUtils(page);
    }

}